<template>
  <!--
        视频：http://localhost:8080/TEST/big_buck_bunny.mp4
        图片：http://localhost:8080/TEST/srJLq0.jpg
     -->
  <div class="container">
    <Category :title="'美食'">
      <img src="http://localhost:8080/TEST/srJLq0.jpg" />
    </Category>
    <Category :title="'游戏'">
      <ul>
        <li v-for="(item, index) in games" :key="index">{{ item }}</li>
      </ul>
    </Category>
    <Category :title="'电影'">
      <video
        controls
        src="http://localhost:8080/TEST/big_buck_bunny.mp4"
      ></video>
    </Category>
  </div>
</template>

<script>
import Category from "./components/Category";
export default {
  name: "App",
  components: {
    Category,
  },
  data() {
    return {
      foods: ["火锅", "烧烤", "小龙虾", "牛排"],
      games: ["王者荣耀", "JJ斗地主", "天天象棋", "魂斗罗"],
      films: ["《教父》", "《拆弹专家》", "《你好，李焕英》", "《无间道》"],
    };
  },
};
</script>

<style scoped>
.container {
  display: flex;
  justify-content: space-around;
}

img,
video {
  width: 100%;
}
</style>
